<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>奇沃云科技</title>
        <meta name="Keywords" content="奇沃云科技 ">
        <meta name="Description" content="奇沃云科技 ">
        <meta name="ctx" th:content="${#httpServletRequest.getContextPath()}"/>
        <link href="/css/login/base.css" rel="stylesheet"/>
        <link href="/css/login/iconfont.css"  rel="stylesheet"/>
        <link href="/css/login/reg.css" rel="stylesheet" />
        <style>
            .form-data .p-input{
                height: auto;
            }
            #authCode{
                width: 100%;
                height: 100px;
            }
        </style>
    </head>
    <body>
        <div id="ajax-hook"></div>
        <div class="wrap">
            <div class="wpn">
                <div class="form-data pos">
                    <a href=""><img src="/css/login/login-logo.png" class="head-logo"></a>
                    <div class="change-login">
                        <p class="account_number on">请输入授权码</p>
                        <!-- <p class="message">短信登录</p> -->
                    </div>
                    <div class="form1">
                        <p class="p-input pos">
                            <!--<label for="authCode">请输入授权码</label>-->
                            <textarea rows="5" id="authCode" class="form-control" placeholder="请输入授权码" ></textarea>
                            <span class="tel-warn num-err hide"><em>授权码，请重新输入</em><i class="icon-warn"></i></span>
                        </p>

                    </div>
                    <button class="lang-btn  log-btn" onclick="Send()">确定</button>
                    <div class="third-party">
                  <!--      <a href="" class="log-qq icon-qq-round"></a>
                        <a href="" class="log-qq icon-weixin"></a>
                        <a href="" class="log-qq icon-sina1"></a>-->
                    </div>
                    <p class="right">Powered by 奇沃云科技有限公司 © 2018</p>
                </div>
            </div>
        </div>
        <script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
        <script src="/css/login/jquery.js"></script>
        <script src="/css/login/agree.js"></script>
        <script src="/js/plugins/layer/layer.min.js" th:src="@{/js/plugins/layer/layer.min.js}"></script>
        <script src="/css/login/authCode.js"></script>
    </body>
<script type="text/javascript">
    window.onload = function () {
        if (window.parent.window != window) {
            window.top.location = "/main/authCode";
        }
    }
    
    function  Send() {
        var inp = $.trim($('#authCode').val());
        var params = {};
        params.authCode = inp;
        $.ajax({
            type: "POST",
            url: ctx+"main/AjaxauthCode",
            data: params,
            success: function (r) {
                if (r.code == 0) {
                    parent.location.href = '/main/index';
                } else {
                    layer.msg(r.msg);
                }
            }
        });
        
    }

</script>

</html>